package cn.smileyan.demo;

import lombok.extern.slf4j.Slf4j;

/**
 *
 * @author Smileyan
 */
@Slf4j
public class SimpleModel implements Model {
    @Override
    public double calc(double value) {
        log.debug("starting calculating {} ", value);
        if (value > 0) {
            return value * 2;
        } else {
            return -value;
        }
    }
}
